package com.yoomiito.app.base;

import com.yoomiito.app.Constant;
import com.yoomiito.app.model.config.ConfigInfo;

import cn.droidlover.xdroidmvp.cache.SharedPref;

public class AppConfig {
    public AppClient mAppClient;
    public CurrentUser mCurrentUser;
    public String deviceId;
    public ConfigInfo mConfigInfo;
    public AppConfig(AppClient appClient, CurrentUser currentUser) {
        mAppClient = appClient;
        mCurrentUser = currentUser;
    }

    public boolean getIsFirst() {
//        XLog.d(TAG, "isFirst:" + SharedPref.getInstance(App.getInstance()).getBoolean(Constant.IS_FIRST, false));
        return SharedPref.getInstance(App.getInstance()).getBoolean(Constant.IS_FIRST, false);
    }

    public boolean getIsLogin() {
//        XLog.d(TAG, "isLogin:" + SharedPref.getInstance(App.getInstance()).getBoolean(Constant.IS_LOGIN, false));
        return SharedPref.getInstance(App.getInstance()).getBoolean(Constant.IS_LOGIN, false);
    }
}
